#ifndef __DB_FRAMEWORK_H__2008_0510__
#define __DB_FRAMEWORK_H__2008_0510__

#include <commonheader.h>
#include <sdhlp/singleton.h>
#include "exelogger.h"
#include <time.h>

namespace SGDP{class ISDNet; class ISDTimerModule; class ISDPipeModule; class ISDListener;}

class CItemFramework
{
public:
    CItemFramework();
    virtual ~CItemFramework();

    bool            CreateAllSingleton();
    bool		    Init();

    virtual bool    Update(int nMillsSeconds);
	bool		    Run();
	bool		    Finalize();
    bool            Stop();

protected:
    bool _InitDBConnectDB();

private:

	bool                        m_bTerminate;
};

#endif //__GAME_FRAMEWORK_H__2008_0510__

